package com.cy.air.postXml.controller
{
	import com.cy.air.postXml.view.RequestUrlMediator;
	import com.cy.air.postXml.view.RequestXmlMediator;
	import com.cy.air.postXml.view.ResponseMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class PrepMediatorCommand extends SimpleCommand
	{
		
		override public function execute(notification:INotification):void
		{
			var app:HttpPostXML_UsePureMVCSQLite=notification.getBody() as HttpPostXML_UsePureMVCSQLite;
			
			facade.registerMediator(new RequestUrlMediator(app.requestUrlView));
			facade.registerMediator(new RequestXmlMediator(app.infoView.requestXmlView));
			facade.registerMediator(new ResponseMediator(app.infoView.responseView));
		}
	}
}